package com.chennan.pattern.chain.gupao.auth;

/**
 * @author chennan
 * @create 2022-02
 */
public class AuthService {

    public void login(String name){
        AuthHandler valide = new ValideHandler();
        AuthHandler handler = new LoginHandle();
        AuthHandler.Builder builder = new AuthHandler.Builder();
        builder.addHandle(valide).addHandle(handler);
        builder.build().handle(name);
    }
}
